COSEL=TOGGLE_OUTPUT, CMD=EDGE_PWM, DIFGEN=DISABLED
Channel Capture/Compare Mode
COSEL | Channel Output Function Select. 0 (TOGGLE_OUTPUT): Toggle the channel output at the next capture/compare, overflow, or intermediate event. 1 (SET_OUTPUT): Set the channel output at the next capture/compare, overflow, or intermediate event. 2 (CLEAR_OUTPUT): Clear the output at the next capture/compare, overflow, or intermediate event. 3 (NO_CHANGE): Capture/Compare, overflow, or intermediate events do not control the output state. |
PWMMD | PWM N-Bit Mode. |
DIFGEN | Differential Signal Generator Enable. 0 (DISABLED): Disable the differential signal generator. The channel will output a single non-differential output. 1 (ENABLED): Enable the differential signal generator. The channel will output two differential outputs: X Phase (XPH) and Y Phase (YPH). |
CMD | Channel Operating Mode. 0 (EDGE_PWM): Configure the channel for edge-aligned PWM mode. 1 (CENTER_ALIGNED_PWM): Configure the channel for center-aligned PWM mode. 2 (HF_SQUARE_WAVE): Configure the channel for high-frequency/square-wave mode. 3 (TIMER_CAPTURE): Configure the channel for timer/capture mode. 4 (N_BIT_PWM): Configure the channel for n-bit edge-aligned PWM mode. |